package com.syh.jn.scm.domain.supplier.repository.base.downstream;

import com.syh.core.ddd.infrastructure.repository.ReadRepo;
import com.syh.jn.scm.domain.supplier.entity.base.downstream.Downstream;
import com.syh.jn.scm.domain.supplier.entity.base.downstream.DownstreamAddress;
import com.syh.jn.scm.dto.supplier.base.downstream.DownstreamAddressVo;

import java.util.List;

public interface DownstreamReadRepository extends ReadRepo<Downstream, Long> {
  public DownstreamAddress getAddressById(Long addressId);

  List<DownstreamAddress> getAddressByDownstreamId(Long downstreamId);
  /**
   * 根据id拿到客户地址
   *
   * @param downstreamId
   * @return
   */
  List<DownstreamAddressVo> getDownstreamAddressView(Long downstreamId);
}
